<?php
/**
 *
* @author vu
*
*/
class Model_CodeControl {
	private $id;
	private $code;
	private $value;
	private $description;
	public function __construct($data) {
		if (is_array ( $data )) {
			if (isset ( $data ['ID'] )) {
				$this->id = $data ['ID'];
			}
			
			if (isset ( $data ['CODE'] )) {
				$this->code = $data ['CODE'];
			}
			
			if (isset ( $data ['VALUE'] )) {
				$this->value = $data ['VALUE'];
			}
			
			if (isset ( $data ['DESCRIPTION'] )) {
				$this->description = $data ['DESCRIPTION'];
			}
		}
	}
	public function getId() {
		return $this->id;
	}
	public function getCode() {
		return $this->code;
	}
	public function getValue() {
		return $this->value;
	}
	public function getDescription() {
		return $this->description;
	}
	public function setId($x) {
		$this->id = $x;
	}
	public function setCode($x) {
		$this->code = $x;
	}
	public function setValue($x) {
		$this->value = $x;
	}
	public function setDescription($x) {
		$this->description = $x;
	}
}